<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>我的桌面</title>
    <!-- Reset CSS -->
    <link href="css/reset.css" th:href="@{css/reset.css}" rel="stylesheet" type="text/css">
    <!-- Bootstrap -->
    <link href="assets/bootstrap/css/bootstrap.min.css" th:href="@{assets/bootstrap/css/bootstrap.min.css}" rel="stylesheet" type="text/css">
    <!-- Font Awesome -->
    <link href="assets/font-awesome/css/font-awesome.min.css" th:href="@{assets/font-awesome/css/font-awesome.min.css}" rel="stylesheet" type="text/css">
    <!-- Iconmoon -->
    <link href="assets/iconmoon/css/iconmoon.css" th:href="@{assets/iconmoon/css/iconmoon.css}" rel="stylesheet" type="text/css">
    <!-- Lightbox CSS -->
    <link href="assets/lightbox/css/lightbox.css" th:href="@{assets/lightbox/css/lightbox.css}" rel="stylesheet" type="text/css">
    <!-- Owl Carousel -->
    <link href="assets/owl-carousel/css/owl.carousel.min.css" th:href="@{assets/owl-carousel/css/owl.carousel.min.css}" rel="stylesheet" type="text/css">
    <!-- Animate -->
    <link href="css/animate.css" th:href="@{css/animate.css}" rel="stylesheet" type="text/css">
    <!-- Aos -->
    <link href="assets/aos/aos.css" th:href="@{assets/aos/aos.css}" rel="stylesheet" type="text/css">
    <!-- Custom Style -->
    <link href="css/custom.css" th:href="@{css/custom.css}" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="css/oksub.css" th:href="@{css/oksub.css}" media="all"/>
</head>
<body>
<!-- Start Feature Classes -->
<div class="feature-outer classes-page">
    <div class="container">
        <div class="feature-list">
            <h2 style="text-align: center;">课程推荐</h2>
            <div class="row" id="showCourseDiv">
            </div>
        </div>
    </div>
</div>
<!-- End Feature sec -->
<!-- Start Finess Sec -->
<div class="finess-outer">
    <div class="container">
        <h3>今年夏天进行的健身课 <br/>立即 付款<br/> 将得到 <span>25%</span> 的折扣</h3>
    </div>
</div>
<!-- End Finess sec -->

<!-- Start Trainers sec -->
<div class="trainers-outer bgNone trainers-page">
    <div class="container">
        <div class="trainers-list">
            <h2 style="text-align: center;">绝佳拍档</h2>
            <div class="row" id="showCoachDiv">
            </div>
        </div>
    </div>
</div>
<!-- End Trainers sec -->



<!-- CourseModal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">请确认您的购买信息</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            </div>
            <div class="modal-body">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-6 ">
                            <input type="hidden" id="courseId">
                            <input type="hidden" id="userId" th:value="${session.nowUser.uid}">
                            <img src="images/feature-thumb8.png" width="100%" height="70%" id="samplePicture"/>
                            <p>&nbsp;</p>
                            <label>
                                总价
                                <input type="text" style="border: none;width: 30%;text-align: center;color: #2D8CF0;" value="200" id="totalCoursePrice" readonly="readonly" />
                                <input type="hidden" value="200" id="coursePrice" />
                                元
                            </label>
                        </div>
                        <div class="col-sm-6 ">
                            <p>课程名称:&nbsp;&nbsp;&nbsp;&nbsp;<span id="courseName" style="color: #009688;">有氧操课</span></p>
                            <p>教练名称:&nbsp;&nbsp;&nbsp;&nbsp;<span id="courseTeacher" style="color: #009688;">王可可</span></p>
                            <p>训练地区:&nbsp;&nbsp;&nbsp;&nbsp;<span id="courseVenue" style="color: #009688;">王可可</span></p>
                            <p>课程关注度&nbsp;&nbsp;第&nbsp;<span id="courseHot" style="color: #009688;">1</span>&nbsp;名</p>
                            <p>课程喜爱度&nbsp;&nbsp;第&nbsp;<span id="courseLike" style="color: #009688;">1</span>&nbsp;名</p>
                            <p>&nbsp;</p>
                            <label style="margin-top: 14px;">
                                <span>课时数：</span>
                                <button onclick="add()" style="width: 30px;font-size: 18px">+</button>
                                <input type="text" style="border: none;width: 30%;text-align: center;color: #2D8CF0;" value="1" id="courseNum"/>
                                <button onclick="sub()" style="width: 30px;font-size: 18px">-</button>
                            </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="buyCourses">确认购买</button>
            </div>
        </div>
    </div>
</div>

<!-- CoachModal -->
<div class="modal fade" id="coachModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel2">教练信息</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            </div>
            <div class="modal-body">

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <!-- <button type="button" class="btn btn-primary">Save changes</button>-->
            </div>
        </div>
    </div>
</div>

<style>
    /**
 * 注册提示框样式
 */
    #info{
        display: none;
        width: 200px;
        height: 200px;
        background-color: #000000;
        border-radius: 30px;
        margin: 150px auto;
        opacity:0.7;
        color: white;
        position:fixed;
        top:20%;
        left:30%;
        z-index: 100000;
    }
    #info p{
        text-align: center;
        font-size: 18px;
        padding: 10px;
    }
</style>
<div id="info">
    <span id="msg"></span>
</div>

</body>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js" th:src="@{js/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{lib/loading/okLoading.js}"></script>
<!-- Bootstrap JS -->
<script src="assets/bootstrap/js/bootstrap.min.js" th:src="@{assets/bootstrap/js/bootstrap.min.js}"></script>
<!-- Lightbox JS -->
<script src="assets/lightbox/js/lightbox.js" th:src="@{assets/lightbox/js/lightbox.js}"></script>
<!-- Owl Carousal JS -->
<script src="assets/isotope/js/isotope.min.js" th:src="@{assets/isotope/js/isotope.min.js}"></script>
<!-- Owl Carousal JS -->
<script src="assets/owl-carousel/js/owl.carousel.min.js" th:src="@{assets/owl-carousel/js/owl.carousel.min.js}"></script>
<!-- Aos JS -->
<script src="assets/aos/aos.js" th:src="@{assets/aos/aos.js}"></script>
<!-- CounterUp JS -->
<script src="assets/counterup/counterup.min.js" th:src="@{assets/counterup/counterup.min.js}"></script>
<script src="assets/counterup/waypoints.min.js" th:src="@{assets/counterup/waypoints.min.js}"></script>
<!-- Custom JS -->
<script src="js/custom.js" th:src="@{js/custom.js}"></script>
<script src="js/member-desktop.js" th:src="@{js/member-desktop.js}"></script>
</html>